package com.ruoyi.system.domain;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import com.ruoyi.common.annotation.Excel.ColumnType;
import com.sun.jna.platform.unix.X11;
import jdk.nashorn.internal.objects.annotations.Property;
import org.apache.poi.ss.usermodel.IndexedColors;

/*商品表*/

public class TGoods extends BaseEntity {
    private static final long serialVersionUID = 1L;
    @Excel(name = "商品编号",cellType = ColumnType.NUMERIC)
    private Integer goodsId;
    @Excel(name = "商品名称")
    private String goodsName;
    @Excel(name = "价格",isStatistics = true,headerColor = IndexedColors.RED)
    private String price;
    @Excel(name = "图片",cellType = ColumnType.IMAGE)
    private String image;
    @Excel(name = "状态",readConverterExp = "0=上架，1=下架")
    private String status;
    @Excel(name = "备注")
    private String remark;

    public TGoods() {
    }

    @Override
    public String toString() {
        return "TGoods{" +
                "goodsId=" + goodsId +
                ", goodsName='" + goodsName + '\'' +
                ", price='" + price + '\'' +
                ", image='" + image + '\'' +
                ", status='" + status + '\'' +
                ", remark='" + remark + '\'' +
                '}';
    }

    public TGoods(Integer goodsId, String goodsName, String price, String image, String status, String remark) {
        this.goodsId = goodsId;
        this.goodsName = goodsName;
        this.price = price;
        this.image = image;
        this.status = status;
        this.remark = remark;
    }

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public Integer getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(Integer goodsId) {
        this.goodsId = goodsId;
    }

    public String getGoodsName() {
        return goodsName;
    }

    public void setGoodsName(String goodsName) {
        this.goodsName = goodsName;
    }

    public String getPrice() {
        return price;
    }

    public void setPrice(String price) {
        this.price = price;
    }

    public String getImage() {
        return image;
    }

    public void setImage(String image) {
        this.image = image;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }
}
